how to remove last item from array in javascript

visit shbcf.ru